<template>
  <cwCommon :type="type" :financeData="form" @clear="clearForm" :name="cw">
    <el-form-item label="采买名称">
      <el-input v-model="form.name" placeholder="采买名称"></el-input>
    </el-form-item>

    <el-form-item label="采买金额">
      <el-input v-model="form.money" placeholder="采买金额" @focus="$cls" @blur="$fmoney"></el-input>
    </el-form-item>
  </cwCommon>
</template>

<script>
  import cwCommon from "./cwCommon";

    export default {
        name: "cwCmai",
        data(){
            return {
                type: 2,
                limit: '0.00',
                form: {name: '',money: '0.00'},
                cw:'采买'
            }
        },
        components: {
            cwCommon,
        },
       methods:{
          clearForm(){
            console.log('clear')
            this.form.name = ''
            this.form.money = '0.00'
            this.limit = '0.00'
          }
       },
    }
</script>

<style scoped>

</style>
